﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleAppServer.Core
{
    /// <summary>
    /// ICommand
    /// </summary>
    public interface ICommand
    {
        /// <summary>
        /// 内容
        /// </summary>
        byte[] Body { get; }

        /// <summary>
        /// 获取命令数据包
        /// </summary>
        /// <returns>字节数组</returns>
        byte[] GetBytes();
    }
}
